<?php
class Base_Model_Config{
	
	private $_config;
	private $_views = array();
	
	
	public function __construct(){
		$this->_config = simplexml_load_file(Merce::getAppcontextpath()."views/config.xml");
		foreach ($this->_config->children() as $child){
			$this->_views[(string)$child->attributes()->name] = $child;
		}
	}
	
	public function get($key){
		if(isset($this->_views[$key])){
			return $this->_views[$key];
		}
		return;
	}
}